how the canon of the bible was formed